The Dreamweaver JavaScript API > Window functions > dom.getFocus()

 

dom.getFocus()

Availability

Dreamweaver 3.0

Description

Determines the part of the document that is currently in focus.

Arguments

None.

Returns

One of the following strings:

"head" if the HEAD area is active
"body" if the BODY or NOFRAMES area is active
"frameset" if a frameset or any of its frames is selected
"none" if the focus is not in the document (for example, if it's in the Property inspector or another floating panel)

Enabler

None.